package com.gec.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @GetMapping(value = {"/index", "/"})
    public String toIndexHtml() {
        return "index";
    }

    @GetMapping("/myajax")
    public String toLogin() {
        return "myajax";
    }

    @GetMapping("/error")
    public String toError() {
        return "error";
    }
}
